home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / daten / amicheck / install libs / install.iconx next >
Text File  |  1995-08-22  |  5KB  |  189 lines

  1. ; $VER: Install.IconX 37.3 (29.10.94)
  2. ;
  3. ; This script installs the GUIFront library and preferences editor on your
  4. ; hard drive.  
  5. ;
  6. ; extended by Doug Dyer to also install the easyrexx utility.
  7. ; This is pulled almost 100% from Michael Berg's GUIFront install script
  8. ; - Doug Dyer
  9.  
  10. FailAt 21
  11.  
  12. Echo "amiCheck installation script for use with IconX"
  13. Echo ""
  14.  
  15. ; *** copy amicheck application
  16. ;Echo "Installing amiCheck main program:"
  17.  
  18. ;SetEnv DoCopyAC YES
  19. ;    Echo "
  20. [0m" NOLINE
  21. ;    Ask "        Do you want to install the main program?"
  22. ;    If NOT WARN
  23. ;        SetEnv DoCopyAC NO
  24. ;    EndIf
  25. ;EndIf
  26.  
  27. ;If $DoCopyAC EQ "YES"
  28. ;    Echo "        Which CPU version of the program do you want to install? "
  29. ;Lab SelectACVersion
  30. ;    Echo "            Enter '000' for the 68000 version"
  31. ;    Echo NOLINE "            Enter '020' for the 68020 version: "
  32. ;    /GetLine >ENV:ACInstallVersion
  33. ;    If $ACInstallVersion EQ "000"
  34. ;        SetEnv SourceFile /storage/amiCheck.68000
  35. ;    Else
  36. ;        SetEnv SourceFile /libs/amiCheck.68020
  37. ;    EndIf
  38. ;    If NOT EXISTS $SourceFile
  39. ;        Echo "            Illegal selection. Please re-select*N"
  40. ;        Skip BACK SelectACVersion
  41. ;    EndIf
  42.  
  43. ;   Echo "        Copying amiCheck from storage ..."
  44. ;   Copy $SourceFile /amiCheck QUIET
  45. ;   Copy $SourceFile.info /amiCheck.info QUIET
  46.  
  47. ;Else
  48. ;    Echo "        Skipped"
  49. ;EndIf
  50.  
  51. Avail >NIL: FLUSH
  52.  
  53. Echo ""
  54.  
  55. ; *** install easyrexx.library
  56. Echo "Installing library:"
  57.  
  58. Echo "    easyrexx.library"
  59.  
  60. SetEnv DoCopyLib YES
  61.  
  62. Version >NIL: easyrexx.library 2 0
  63. If NOT WARN
  64.     Echo "        You already have: 
  65. [1m" NOLINE
  66.     Version easyrexx.library
  67.     Echo "
  68. [0m" NOLINE
  69.     Ask "        Do you want to install version 
  70. [1m3.0
  71. [0m of easyrexx.library?"
  72.     If NOT WARN
  73.         SetEnv DoCopyLib NO
  74.     EndIf
  75. EndIf
  76.  
  77. If $DoCopyLib EQ "YES"
  78.     SetEnv SourceFile /libs/easyrexx.library
  79.     Echo "        Copying easyrexx.library to your LIBS: ..."
  80.     Copy $SourceFile LIBS:easyrexx.library QUIET
  81. Else
  82.     Echo "        Skipped"
  83. EndIf
  84.  
  85. Avail >NIL: FLUSH
  86. Echo ""
  87.  
  88. ; *** install GUIFront (verbatim Michel Berg's original script)
  89. Echo "Installing library:"
  90.  
  91. Echo "    guifront.library"
  92.  
  93. SetEnv DoCopyLib YES
  94.  
  95. Version >NIL: guifront.library 37
  96. If NOT WARN
  97.     Echo "        You already have: 
  98. [1m" NOLINE
  99.     Version guifront.library
  100.     Echo "
  101. [0m" NOLINE
  102.     Ask "        Do you want to install version 
  103. [1m37.2
  104. [0m of guifront.library?"
  105.     If NOT WARN
  106.         SetEnv DoCopyLib NO
  107.     EndIf
  108. EndIf
  109.  
  110. If $DoCopyLib EQ "YES"
  111.     Echo "        Which CPU version of the library do you want to install? "
  112. Lab SelectLibVersion
  113.     Echo "            Enter '000' for the 68000 version"
  114.     Echo NOLINE "            Enter '020' for the 68020 version: "
  115.     /GetLine >ENV:GFLibInstallVersion
  116.     If $GFLibInstallVersion EQ "000"
  117.         SetEnv SourceFile /libs/guifront.library
  118.     Else
  119.         SetEnv SourceFile /libs/guifront.library.$GFLibInstallVersion
  120.     EndIf
  121.     If NOT EXISTS $SourceFile
  122.         Echo "            Illegal selection. Please re-select*N"
  123.         Skip BACK SelectLibVersion
  124.     EndIf
  125.  
  126.     Echo "        Copying guifront.library to your LIBS: ..."
  127.     Copy $SourceFile LIBS:guifront.library QUIET
  128. Else
  129.     Echo "        Skipped"
  130. EndIf
  131.  
  132. Avail >NIL: FLUSH
  133.  
  134. Echo ""
  135.  
  136. If EXISTS Locale:Catalogs
  137.     Echo "Do you wish to install the catalog files for the GUIFront"
  138.     Echo "preferences editor?"
  139.     Ask  "Kickstart 2.04 users should answer No, all others Yes: [y/n]:"
  140.     If WARN
  141.         Copy >NIL: Locale Locale: All
  142.         Echo "Catalogs installed"
  143.     EndIf
  144. Else
  145.     Echo "Catalog files not installed -- no Locale directory found"
  146. EndIf
  147.  
  148. If EXISTS SYS:Prefs
  149.     SetEnv TargetDir Sys:Prefs/
  150. Else
  151.     SetEnv TargetDir Sys:
  152. Endif
  153.  
  154. Echo "*NInstalling GUIFront preferences editor..."
  155.  
  156. Lab SelectDir
  157.  
  158. Ask "    Install in '$TargetDir'? [y/n]:"
  159. If WARN
  160.     Echo "        Which version do you wish to install?"
  161. Lab SelectVersion
  162.     Echo "          Enter '000' for the 68000 version"
  163.     Echo NOLINE "          Enter '020' for the 68020 version: "
  164.     /GetLine >ENV:GFInstallVersion
  165.     If $GFInstallVersion EQ "000"
  166.         SetEnv SourceFile /Prefs/GUIFront
  167.     Else
  168.         SetEnv SourceFile /Prefs/GUIFront.$GFInstallVersion
  169.     EndIf
  170.     If NOT EXISTS $SourceFile
  171.         Echo "          Illegal selection. Please re-select*N"
  172.         Skip BACK SelectVersion
  173.     EndIf
  174.  
  175.     Echo "        Copying preferences editor to '"$TargetDir"'..."
  176.     Copy $SourceFile $TargetDir QUIET
  177.     Copy $SourceFile.info $TargetDir QUIET
  178. Else
  179.     Echo NOLINE "    Enter other path, QUIT to skip installation: "
  180.     /GetLine >ENV:TargetDir
  181.     If NOT $TargetDir EQ "QUIT"
  182.         Skip BACK SelectDir
  183.     Else
  184.         Echo "    Installation skipped..."
  185.     EndIf
  186. EndIf
  187.  
  188. Echo "*NInstallation complete. You may close the window now."
  189.